package controllers

import (
	"gin-worked/app/common/service"
	"gin-worked/work"
	"github.com/gin-gonic/gin"
)

type UserInfoController struct {
}

func (ui UserInfoController) Info(c *gin.Context) {

	uid, _ := c.Get("uid")

	res := service.UserInfoDetails(uid.(int))

	work.ReturnResult(c, res.Code, res.Msg, res.Data)
}
